<?php session_start();?>
<?php $session_data = $this->session->userdata('logged_in');
      $username['username'] = $session_data['username'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
    <head>
        <title>Simple Login with CodeIgniter - Private Area</title>
    </head>
    <body>
    <h1>Home</h1>
    <h2>Welcome <?php echo $username['username'];?> !
    </h2>
        <?= anchor('home/logout','Logout')?>
    </body>
</html>
